package io.zhengsh.vvip.jvm.gc;

import java.util.ArrayList;
import java.util.List;

/**
 * VM Args：-XX:+UseZGC -Xms8m -Xlog:gc*
 */
public class HeapOOM {

    public static void main(String[] args) {
        List<byte[]> list = new ArrayList<>();
        while (true) {
            list.add(new byte[2048]);
        }
    }
}
